package com.toy.core.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import com.toy.core.ToyConstants;

@Document(collection=ToyConstants.TABLE_CACHE_AUDIT)
public class CacheAudit {
	
	@Id
	private long id;
	
	@Indexed
	private String className;
	
	@Indexed
	private String methodName;
	
	@Indexed
	private long requestCount;
	
	@Indexed
	private long missCount;
	
	@Indexed
	private long shootCount;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public long getRequestCount() {
		return requestCount;
	}

	public void setRequestCount(long requestCount) {
		this.requestCount = requestCount;
	}

	public long getMissCount() {
		return missCount;
	}

	public void setMissCount(long missCount) {
		this.missCount = missCount;
	}

	public long getShootCount() {
		return shootCount;
	}

	public void setShootCount(long shootCount) {
		this.shootCount = shootCount;
	}

}
